Details
-
Bug
-
Resolution: Fixed
-
Major
-
0.9.11
-
None
-
Windows xp.
Description
I use the following code to initialize and reload logback configuration :
LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();
JoranConfigurator configurator = new JoranConfigurator();
configurator.setContext(lc);
lc.shutdownAndReset();
configurator.doConfigure(logFile);
I have a turbofilter that needs to do some stuff when stopped. Though, the stop() method is not called in that case. So I added the following code before the shutdownandreset :
TurboFilter tbf = lc.getFirstTurboFilter();
while(tbf != null)
This is the only workaround I found. Is there any way to do better ?